﻿import * as crypto from "crypto";

export class Hash {
    md5(...args: string[]): string {
        var md5 = crypto.createHash('md5');
        args.forEach(arg => {
            md5.update(arg);
        });
        return md5.digest('hex');
    }
}